package trism.field.model {
	import trism.field.Field;
	import trism.field.view.FieldView;
	import trism.game.model.common.CommonItem;

	import com.samoiloff.framework.model.AbstractModel;

	import flash.display.DisplayObject;

	/**
	 * @author Samoiloff  http://samoiloff.com/
	 */
	public class FieldModel extends AbstractModel {
		
		private var _root : DisplayObject;
		private var _commonItem : CommonItem;
		
		public function FieldModel(component : Field, view : FieldView) {
			super(component, view);
		}
		
		
		public function init(root : DisplayObject, commonItem : CommonItem) : void {
			_root = root;
			_commonItem = commonItem;
			complete();	
		}
		
		
		override public function destroy() : void {
			_root = null;
			_commonItem = null;
			
			super.destroy();
		}
		
		
	}
}
